<?php
$this->breadcrumbs = array(
    'Foods' => array('index'),
    'Manage',
);

$this->menu = array(
    array('label' => 'List Food', 'url' => array('index')),
    array('label' => 'Create Food', 'url' => array('create')),
);
?>
<?php echo Grape::headTitleDesc("Manage Food"); ?>
<div class='grid_12'>
    <div class='block-border'>
        <div class='block-header'>
            <h1>Manage Food</h1>
            <span></span>
        </div>
        <div class='block-content'>
            <?php
            $this->widget('zii.widgets.grid.CGridView', array(
                'id' => 'food-grid',
                'dataProvider' => $model->search(),
                'filter' => $model,
                'columns' => array(
                    'foodId',
                    'name',
                    'foodGroupId',
                    'shortDescription',
                    'water',
                    'energyKcal',
                    /*
                      'protein',
                      'carbohydrate',
                      'totalDietaryFiber',
                      'totalSugar',
                      'calcium',
                      'iron',
                      'magnesium',
                      'phosphorus',
                      'potassium',
                      'sodium',
                      'zinc',
                      'copper',
                      'manganese',
                      'selenium',
                      'vitaminC',
                      'thiaminB1',
                      'riboflavinB2',
                      'niacin',
                      'vitaminB6',
                      'folicAcid',
                      'vitaminB12',
                      'vitaminAIU',
                      'vitaminE',
                      'vitaminDIU',
                      'saturatedFattyAcid',
                      'monoFattyAcid',
                      'polyFattyAcid',
                      'cholesterol',
                      'gramWeight1',
                      'gramWeightDescription1',
                      'gramWeight2',
                      'gramWeightDescription2',
                      'percentRefuse',
                     */
                    array(
                        'class' => 'CButtonColumn',
                    ),
                ),
            ));
            ?>
        </div>
    </div>
</div>
<div class='clear'></div>